package com.meisupic.copyright.repo;

import com.meisupic.copyright.domain.po.Message;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author lanjian
 * @Date 2018/4/7 下午4:51
 */
public interface MessageRepo extends JpaRepository<Message, Long> {

  List<Message> findTop1ByReceiverIdOrderByCreateTimeDesc(Long userid);
}
